import request from '@/utils/requestUtil'

// 根据关键词查询资讯
export function getArticleByKeyWord(keyword) {
	return request({
		method: 'GET',
		url: '/health/articles/getArticleByKeyWord',
		header: {
			'content-type': 'application/json;charset=utf-8'
		},
		params: {
			searchKeywords: keyword
		}
	})
}

// 根据分类查询资讯
export function getArticleByTypeId(articlesTypeId) {
	return request({
		method: 'GET',
		url: '/health/articles/getArticleByKeyWord',
		header: {
			'content-type': 'application/json;charset=utf-8'
		},
		params: {
			articlesTypeId: articlesTypeId
		}
	})
}